package com.xr;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

import java.util.Arrays;

@SpringBootApplication
public class Springboot0403MybatisPlusApplication {

    public static void main(String[] args) {
//        String[] arg = new String[1];
//        arg[0] = "--server.port=8082";
//        System.out.println(Arrays.toString(args));
        SpringApplication.run(Springboot0403MybatisPlusApplication.class, args);
        //打印参数来看看
//        System.out.println(Arrays.toString(args));
        //可以在启动boot程序时候断开读取外部临时配置对应的入口，也就是去掉读取外部参数
//        SpringApplication.run(Springboot0403MybatisPlusApplication.class);
    }

//    public static void main(String[] args) {
//        try {
//            SpringApplication.run(Springboot0403MybatisPlusApplication.class, args);
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//    }

}
